package org.xin.framework.config.properties;

import lombok.Data;
import lombok.Getter;
import lombok.Setter;
import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * @author ：xin
 * @date ：Created in 2021/9/30
 * @desc <p>  </p>
 * @modified By：$
 * @version: $
 */
@Getter
@Setter
@ConfigurationProperties(prefix = "xin", ignoreUnknownFields = false)
public class ConfigProperties {

    /**
     * SWAGGER参数
     */
    public Swagger swagger = new Swagger();
    /**
     * SWAGGER接口文档参数
     */
    @Data
    public static class Swagger {
        private String groupName;
        private String title;
        private String description;
        private String version;
        private String termsOfServiceUrl;
        private String contactName;
        private String contactUrl;
        private String contactEmail;
        private String license;
        private String licenseUrl;
    }
    /**
     * 项目配置
     */
    public Config config = new Config();

    @Data
    public static class Config {
        private String name;
        private String version;
        private String copyrightYear;
        private String demoEnabled;
        private String profile;
        private String addressEnabled;
        private String captchaType;
    }
}
